#pragma once
#include "CEffectUnit.h"
#include "CEffectSprite.h"

BEGIN_WARE

class ITexture;
class IGraphic;

class CTextureAnimation : public CEffectUnit
{
public:
	CTextureAnimation( IEffectUnitProp* pEffectUnitProp );
	~CTextureAnimation(void);

	virtual void		CullVisibleObjects( IGraphic* pGraphic, ISceneNodeCamera* pCamera );
	virtual VBOOL		Update( IGraphic* pGraphic, const CMatrix4& MatParent, uint32 uCurTime );
	virtual VBOOL		Render( IGraphic* pGraphic, uint32 uCurTime );

	virtual VBOOL		Create( IResourceManager* pResMgr );

	virtual	void		SetEffectUnitProp( IEffectUnitProp* pProp );

private:

	CEffectSprite		m_Sprite;
};

END_WARE
